package com.mdb.open.trade.service.content;


/*
* Copyright (C), 2017-2019 澳发科技(MDB)
* FileName: FileTypeService.java
* Author:   liuyi
* Date:     2019-07-15
* History:
* <author>          <time>          <version>          <desc>
* liuyi         2019-07-15          V1.00             代码生成器初始生成代码
* -----------------------------------------------------------
* 作者姓名           修改时间           版本号            描述
*/


import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.mdb.bc.database.mybatisplus.SuperService;
import com.mdb.open.trade.common.MdbDataSource;
import com.mdb.open.trade.domain.po.content.FileType;
import com.mdb.open.trade.mapper.content.FileTypeMapper;
import org.springframework.stereotype.Service;

/**
 * 类描述：
 *   服务类
 *
 * @author liuyi
 * @date 2019-07-15
 */
@Service
@DS(MdbDataSource.CONTENT)
public class FileTypeService extends SuperService<FileTypeMapper, FileType> {

    public FileType getByFileType(String fileType) {
        return this.baseMapper.selectOne(new LambdaQueryWrapper<FileType>().eq(FileType::getFileType, fileType));
    }

}
